'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  //登录接口
  router.post("/login",controller.users.logins)
  //注册接口
  router.post("/regist",controller.users.regists)
  //查看全表数据
  router.post("/allData",controller.users.allDatas)

  //添加接口
 router.post("/inserts",controller.users.addData)  
 //删除接口
 router.post("/deleteData",controller.users.resData)
 //修改接口
 router.post("/alertDatas",controller.users.alertData)
 //查看接口
 router.post("/checkDatas",controller.users.checkData)
};
